package com.ggshily.swf.abc;

import java.io.DataInput;
import java.io.IOException;

public class ABCScript implements IABCData
{
	public int init;
	public int traitCount;
	public ABCTraitInfo[] traits;
	
	public ABCScript()
	{
		super();
	}

	public ABCScript(DataInput di) throws IOException
	{
		parseInput(di);
	}

	@Override
	public void parseInput(DataInput di) throws IOException
	{
		init = ABCUtil.readU30(di);
		
		traitCount = ABCUtil.readU30(di);
		traits = new ABCTraitInfo[traitCount];
		for(int i = 0; i < traitCount; i++)
		{
			traits[i] = new ABCTraitInfo(di);
		}
	}

	@Override
	public void parseInput(DataInput di, ABCFile file)
	{
		// TODO Auto-generated method stub
		
	}

}
